import {AppRegistry, BackHandler} from 'react-native'
import App from 'src/core/App'
// 注册应用
AppRegistry.registerComponent('rnmobx', () => App)

// 安卓返回键处理
BackHandler.addEventListener('hardwareBackPress', function() {
  // console.log(`BackHandler`)
})

// mobx 日志
if (process.env.NODE_ENV === 'development') {
  const {enableLogging} = require('mobx-logger')
  enableLogging({
    predicate: () => true,
    action: true,
    transaction: true,
    reaction: true,
    compute: true
  })
}

// 关闭黄色警告
console.disableYellowBox = true